<!--
<%@ page contentType="text/html;charset=UTF-8" %>﻿
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
-->
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
<!-- BEGIN CORE PLUGINS -->
<!--[if lt IE 9]>
<script src="${ctx}/static/metronic/assets/global/plugins/respond.min.js"></script>
<script src="${ctx}/static/metronic/assets/global/plugins/excanvas.min.js"></script> 
<![endif]-->
<script src="${ctx}/static/metronic/assets/global/plugins/jquery.min.js" type="text/javascript"></script>
<script src="${ctx}/static/metronic/assets/global/plugins/jquery-migrate.min.js" type="text/javascript"></script>
<!-- IMPORTANT! Load jquery-ui-1.10.3.custom.min.js before bootstrap.min.js to fix bootstrap tooltip conflict with jquery ui tooltip -->
<script src="${ctx}/static/metronic/assets/global/plugins/jquery-ui/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>
<script src="${ctx}/static/metronic/assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="${ctx}/static/metronic/assets/global/plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js" type="text/javascript"></script>
<script src="${ctx}/static/metronic/assets/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
<script src="${ctx}/static/metronic/assets/global/plugins/jquery.blockui.min.js" type="text/javascript"></script>
<script src="${ctx}/static/metronic/assets/global/plugins/jquery.cokie.min.js" type="text/javascript"></script>
<script src="${ctx}/static/metronic/assets/global/plugins/uniform/jquery.uniform.min.js" type="text/javascript"></script>
<script src="${ctx}/static/metronic/assets/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js" type="text/javascript"></script>
<!-- END CORE PLUGINS -->
<!-- BEGIN PAGE LEVEL PLUGINS -->
<script src="${ctx}/static/metronic/assets/global/plugins/flot/jquery.flot.min.js" type="text/javascript"></script>
<script src="${ctx}/static/metronic/assets/global/plugins/flot/jquery.flot.resize.min.js" type="text/javascript"></script>
<script src="${ctx}/static/metronic/assets/global/plugins/flot/jquery.flot.categories.min.js" type="text/javascript"></script>
<script src="${ctx}/static/metronic/assets/global/plugins/jquery.pulsate.min.js" type="text/javascript"></script>
<!-- IMPORTANT! fullcalendar depends on jquery-ui-1.10.3.custom.min.js for drag & drop support -->
<script src="${ctx}/static/metronic/assets/global/plugins/jquery-easypiechart/jquery.easypiechart.min.js" type="text/javascript"></script>
<script src="${ctx}/static/metronic/assets/global/plugins/jquery.sparkline.min.js" type="text/javascript"></script>
<!-- END PAGE LEVEL PLUGINS -->
<!-- BEGIN PAGE LEVEL SCRIPTS -->
<script src="${ctx}/static/metronic/assets/global/scripts/metronic.js" type="text/javascript"></script>
<script src="${ctx}/static/metronic/assets/admin/layout/scripts/layout.js" type="text/javascript"></script>
<script src="${ctx}/static/metronic/assets/admin/layout/scripts/demo.js" type="text/javascript"></script>
<script src="${ctx}/static/metronic/assets/admin/layout/scripts/quick-sidebar.js" type="text/javascript"></script>	
<script src="${ctx}/static/metronic/assets/admin/pages/scripts/index.js" type="text/javascript"></script>
<script src="${ctx}/static/metronic/assets/admin/pages/scripts/tasks.js" type="text/javascript"></script>
<!-- END PAGE LEVEL SCRIPTS -->

<script>
var ctx = "${ctx}";

Date.prototype.format = function(format, zone) {
    var o = {
        "M+" : this.getMonth() + 1, // month
        "d+" : this.getDate(),      // day
        "h+" : (this.getHours() + (zone ? zone : 0)) > 24 ? (this.getHours() + (zone ? zone : 0) - 24) : (this.getHours() + (zone ? zone : 0)), // hour(24)
		"H+" : (this.getHours() + (zone ? zone : 0)) > 12 ? (this.getHours() + (zone ? zone : 0) - 12) : (this.getHours() + (zone ? zone : 0)), // hour(12)
        "m+" : this.getMinutes(),   // minute
        "s+" : this.getSeconds(),   // second
        "q+" : Math.floor((this.getMonth() + 3) / 3), // quarter
        "S" : this.getMilliseconds() // millisecond
    }
	
    if(/(y+)/.test(format)) {
		format = format.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
	}
	
    for(var k in o) {
		if(new RegExp("("+ k +")").test(format)) {
			format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ("00" + o[k]).substr(("" + o[k]).length));
		}
	}
    return format;
}

var cleanMenuActive = function(){
	$("li[id*=menu-]").each(function(){
		$(this).removeClass("active");
		$(this).removeClass("open");
		$(this).find("li.active").removeClass("active");
		$(this).find("li.open").removeClass("open");
		$(this).find("span.arrow").removeClass("open");
	});
}
var activeMenu = function(menuids){
	$("#"+menuids[0]).addClass("active");
	$("#"+menuids[0]).addClass("open");
	$("#"+menuids[0]).find("span.arrow").addClass("open");
	
	$("#"+menuids[1]).addClass("active");
	
}
</script>